# coding:utf-8
# author    : ['王稣胤 820390693@qq.com', ]
# data      : 2020/3/25 15:56
# software  : PyCharm
# python    : '3.5.3 64bit'
# file      : entrance.py
"""
说明文档：

"""
import json

from flask import current_app

import logging


from lib.wsyffw.wsyffw_decos import websocket_route

#https://segmentfault.com/a/1190000018087099?utm_source=tag-newest logging

@websocket_route('/wstest_entrance')
def websocket_test(ws):
    print(ws,'接入')
    while not ws.closed:
        r_d = ws.receive()
        current_app.logger.debug(r_d)
        ws.send('已收到')
